﻿@*
    For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
*@
@{
}
@using TextureGenerator.Mechanics
@model GenConfig
<form asp-action="Gen" method="post" enctype="multipart/form-data" target="_blank">
    <table class="table">
        <tr>
            <td>
                颜色模式
            </td>
            <td>
                <select asp-for="ColorMode">
                    <option value="0">彩色地形图</option>
                    <option value="1">黑白地形图</option>
                    <option value="2">仅轮廓</option>
                </select>
            </td>
        </tr>
        <tr>
            <td>
                确保岛屿
            </td>
            <td>
                <input type="checkbox" asp-for="EnsureIsland" value="true" checked/>
            </td>
        </tr>
        <tr>
            <td>
                确保平原
            </td>
            <td>
                <input type="number" asp-for="EnsurePlain" value="30" min="0" max="100" />
            </td>
        </tr>
        <tr>
            <td>
                细节等级
            </td>
            <td>
                <select asp-for="Detail">
                    <option value="1.7">高</option>
                    <option value="1.9">中</option>
                    <option value="2.1">低</option>
                </select>
            </td>
        </tr>
        <tr>
            <td>
                细碎程度
            </td>
            <td>
                <input asp-for="Side" type="number" value="3" min="2" max="8"/>
            </td>
        </tr>
        <tr>
            <td>
                种子
            </td>
            <td>
                <input asp-for="Seed" type="number" value="114514" min="1" max="1000000"/>
            </td>
        </tr>
        <tr>
            <td>
                像素
            </td>
            <td>
                <select asp-for="Pixel">
                    <option value="0">预览</option>
                    <option value="1">低清</option>
                    <option value="2">高清</option>
                </select>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>

            </td>
        </tr>
@*         <tr>
            <td>
                大致形状(可不填)
            </td>
            <td>
                <input type="file" name="shape"/>
            </td>
        </tr>
        <tr>
            <td>
                形状严格程度(越小越近似原图)
            </td>
            <td>
                <input name="sigma" type="number" min="1" max="20" value="4"/>
            </td>
        </tr> *@
        <tr>
            <td>

            </td>
            <td>
                <input type="submit" value="生成" /><br/>
                需要时间计算，请耐心等待
            </td>
        </tr>
    </table>
</form>